﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace InspectionMAC.Config
{
    public interface ICameraResult
    {
        string DataTime { get; set; }
        string Location { get; set; }
        string iWidth { get; set; }
        string iHeight { get; set; }
        string iName { get; set; }
        bool isOkSave { get; set; }
        bool isNG { get; set; }
        string Faults { get; set; }
    }
    public struct CameraResult01:ICameraResult
    {
        public string DataTime { get; set; }
        public string Location { get; set; }
        public string iWidth { get; set; }
        public string iHeight { get; set; }
        public string iName { get; set; }
        public bool isOkSave { get; set; }
        public bool isNG { get; set; }
        public string Faults { get; set; }
    }

    public struct CameraResult02 : ICameraResult
    {
        public string DataTime { get; set; }
        public string Location { get; set; }
        public string iWidth { get; set; }
        public string iHeight { get; set; }
        public string iName { get; set; }
        public bool isOkSave { get; set; }
        public bool isNG { get; set; }
        public string Faults { get; set; }
    }

    public struct CameraResult03 : ICameraResult
    {
        public string DataTime { get; set; }
        public string Location { get; set; }
        public string iWidth { get; set; }
        public string iHeight { get; set; }
        public string iName { get; set; }
        public bool isOkSave { get; set; }
        public bool isNG { get; set; }
        public string Faults { get; set; }
    }
    //胶囊缺陷类型
    public enum DefectType
    {
        None,
        空泡,
        折痕,
        破边,
        批次不良,
        压泡,
        脏污,
        铝箔不良,
        脱帽,
        混料,
        头发,
        漏粉,
        多粒,
        压痕,
        网纹不良,
        劈叉,
        钢印OK,
        钢印NG,
        未找到该缺陷类型,
    }
    //片剂缺陷类型
    public enum DefectType1
    {
        None,
        空泡,
        折痕,
        破边,
        批次不良,
        压泡,
        脏污,
        铝箔不良,
        裂纹,
        混料,
        头发,
        漏粉,
        多粒,
        崩缺,
        网纹不良,
        钢印OK,
        钢印NG,
        未找到该缺陷类型,
    }
    public class SingleItemInfo
    {
        public string ID { get; set; } = "";
        public string Name { get; set; } = "";
        public string SampleId { get; set; } = "";
        public CameraResult01 CameraResult01 { get; set; }
        public CameraResult02 CameraResult02 { get; set; }
        public CameraResult03 CameraResult03 { get; set; }
        public string CreationTime { get; set; } = DateTime.Now.ToString("yyyyMMddHHmmss");
        public bool IsProcessed { get; set; } = false;
        public bool NeedKick { get; set; } = false; // 添加NeedKick属性
    }

}
